Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix linkis cli async exeute throw npe #4870

Merged
merged 2 commits into from
Sep 1, 2023

Conversation

peacewong
Copy link
Contributor

What is the purpose of the change

Fix linkis cli async execute throw npe. close #4869

Related issues/PRs

Related issues: #4869

String engineConnInstance = (String) parameters.get("engineConnInstance");
return executeECMOperation(
ecmNode, engineConnInstance, new ECMOperateRequest(userName, parameters));
if (parameters.containsKey("engineConnInstance")) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider using getOrDefault instead

@rarexixi
Copy link
Member

LGTM.

Copy link
Member

@rarexixi rarexixi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's OK

@rarexixi rarexixi merged commit b5453a2 into apache:master Sep 1, 2023
12 checks passed
@peacewong peacewong deleted the fix-linkis-cli-npe branch October 9, 2023 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] [Linkis-Cli] linkis cli async exeute throw npe
2 participants